import Friend from '@/views/Friend.vue'
import My from '@/views/My.vue'
import Index from '@/views/Index.vue'
import Test from '@/views/Test.vue'
import NotFound from '@/views/NotFound.vue'
import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "/",
            redirect: "/index"
        },
        {
            path: "/index",
            component: Index,
        },
        {
            path: "/my",
            component: My
        },
        {
            path: "/friend",
            component: Friend
        },
        {
            path: "/my/test",
            component: Test
        },
        {
            path: '/:pathMatch(.*)*',
            component: NotFound
        }
    ]
})

export default router